import type { IList, IResult } from "@/types/common";
import { getAxios, commonAxiosJson } from "@/utils/request.js";
/* 店铺提现 地址 */
const url = "/back/store-withdrawal-log";
/* 获取 店铺提现信息 */
export const getStoreWithdrawalLogInfo = <T, D>(params?: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};

/* 修改 店铺提现信息状态 */
export const putStoreWithdrawalLogUpdateStatusInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/update-status", params, "PUT");
};
/* 修改 店铺提现备注 */
export const putStoreWithdrawalLogUpdateRemarkInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/update-remark", params, "PUT");
};
